home *** CD-ROM | disk | FTP | other *** search
/ The Original Shareware 1.1 / The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso / 32 / abermud.zip / MAKEWORL.C < prev    next >
C/C++ Source or Header  |  1989-07-08  |  405b  |  26 lines

  1. #include <stdio.h>
  2.  
  3. /*
  4.         World Creator
  5. */
  6.  
  7.  
  8. void main()
  9. {
  10.         FILE *a;
  11.         long x[64];
  12.         long b;
  13.         a=fopen("/usr/tmp/-[iy7]|AM","w");
  14.         x[0]=1;
  15.         x[1]=1;
  16.         sec_write(a,x,0,64);
  17.         b=0;
  18.         while(b<600)
  19.         {
  20.                 sec_write(a,x,b,64);
  21.                 x[0]=0;
  22.                 b++;
  23.         }
  24.         fclose(a);
  25. }
  26.